package org.oaix.proxy.jdk;

import net.sf.cglib.proxy.MethodInterceptor;
import net.sf.cglib.proxy.MethodProxy;

import java.lang.reflect.Method;

public class CgLibInterceptor implements MethodInterceptor {

	@Override
	public Object intercept(Object o, Method method, Object[] objects, MethodProxy methodProxy) throws Throwable {
		System.out.println("CgLibInterceptor...start");
		Object result=methodProxy.invokeSuper(o,objects);
		System.out.println("CgLibInterceptor...end");
		return result;
	}
}
